import React from 'react';
import { useLocation } from 'react-router-dom'
const Home = () => {
    const loc = useLocation()  // 相当于 类组件中的this.props.location
    console.log('loc', loc);
    // 将查询字符串中的中文密文解码成中文
    // console.log(decodeURI(loc.search));
    return (
        <div>
            首页
        </div>
    );
}

export default Home;
